package com.nbwyctf.helper.service;

import com.nbwyctf.helper.mapper.UserMapper;
import com.nbwyctf.helper.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chetaifu
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public Long insert(User user) {
        userMapper.insert(user);
        // 返回新增user数据的id
        return user.getId();
    }
}
